package com.buba.service.impl;

import com.buba.dao.DepartmentMapper;
import com.buba.pojo.Department;
import com.buba.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class DepartmentImpl implements DepartmentService {
    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> selAlls() {
        return departmentMapper.selAlls();
    }

    @Override
    public int dell(String departId) {
        return departmentMapper.dell(departId);
    }

    @Override
    public int upd(Map<String, Object> map) {
        return departmentMapper.upd(map);
    }

    @Override
    public int ins(Map<String, Object> map) {
        return departmentMapper.ins(map);
    }


}
